package com.szh.zx.java8.day01;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class DistinctTest {
	
	public void test1(){
		List<Integer> list = Arrays.asList(1,2,34,33,44,33,44);
		List<Integer> listRes = list.stream().distinct().collect(Collectors.toList());
		listRes.forEach(System.out::println);
	}
}
